package com.blue.tooth.lock.vo;

import com.meihua.passivelock.fastble.data.BleDevice;

/**
 * author: jiangliqiang
 * date:   2020/09/21
 */
public class BlueToothDeviceVo {
    private String name,mac;
    private BleDevice bleDevice;

    public BleDevice getBleDevice() {
        return bleDevice;
    }

    public void setBleDevice(BleDevice bleDevice) {
        this.bleDevice = bleDevice;
    }

    public String getName() {
        if(name!=null&&!name.equals("")){

            return name;
        }
        return mac;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }
}
